{include file='common/head.html'}
<div class="layui-body">
    <div class="bg-default">
        {if(![$dbsecurity]||![$session.pwsecurity])}
        <blockquote class="layui-elem-quote layui-text-red" id="note">
            {if(![$dbsecurity])}
            <p>
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                您的数据库文件存在安全隐患，可能被下载，请尽快修改数据库路径！<a class="layui-btn  layui-btn-sm" href="{url./admin/Index/home}&action=moddb">自动修改</a>
            </p>
            {/if}
            {if(![$session.pwsecurity])}
            <p>
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                您的账号密码为初始密码，存在安全隐患，请尽快修改密码！<a class="layui-btn  layui-btn-sm" href="{url./admin/Index/ucenter}">立即修改</a>
            </p>
            {/if}
        </blockquote>
        {/if}
        {if([$debug] && session('ucode')==10001)}
        <blockquote class="layui-elem-quote layui-text-red" id="note">
            <p>
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                提示建议：上线之后请将Debug状态改为禁用！<a class="layui-btn  layui-btn-sm" href="{url./admin/Config/index}">立即修改</a>
            </p>
        </blockquote>
        {/if}
        <blockquote class="layui-elem-quote">
            当前登录用户：{$user_info->username} {$user_info->realname}，登录时间：{$user_info->update_time}，登录IP：{fun=long2ip([$user_info->last_login_ip])}，累计登录次数：{$user_info->login_count}
        </blockquote>
        <fieldset class="layui-elem-field">
            <legend>快捷操作</legend>
            <div class="layui-field-box">
                <div class="layui-row">
                    {foreach $model_msg(key,value)}
                    <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
                        {if($value->type==1)}
                        <a href="{url./admin/Single/index/mcode/'.$value->mcode.'}">
                            {else}
                            <a href="{url./admin/Content/index/mcode/'.$value->mcode.'}">
                                {/if}
                                <dl class="deskbox center-block">
                                    <dt>[value->name]</dt>
                                    <dd>[value->count]</dd>
                                </dl>
                            </a>
                    </div>
                    {/foreach}
                    <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
                        <a href="{url./admin/Message/index}">
                            <dl class="deskbox center-block">
                                <dt>留言</dt>
                                <dd>{$sum_msg}</dd>
                            </dl>
                        </a>
                    </div>
                </div>
            </div>
        </fieldset>
        <div class="layui-row layui-col-space10">
            <div class="layui-col-xs12 layui-col-md6">
                <table class="layui-table table-two">
                    <thead>
                        <tr>
                            <th colspan="2">系统信息</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th width="100">应用版本</th>
                            <td>SEN V2</td>
                        </tr>
                        <tr>
                            <th>主机系统</th>
                            <td>{$server->php_os}</td>
                        </tr>
                        <tr>
                            <th>主机地址</th>
                            <td>{$server->server_name}（{$server->server_addr}:{$server->server_port}）</td>
                        </tr>
                        <tr>
                            <th>WEB软件</th>
                            <td>{$server->server_software}</td>
                        </tr>
                        <tr>
                            <th>PHP版</th>
                            <td>{$server->php_version}</td>
                        </tr>
                        <tr>
                            <th>数据库驱动</th>
                            <td>{$server->db_driver}</td>
                        </tr>
                        <tr>
                            <th>文件上传限制</th>
                            <td>{$server->upload_max_filesize}</td>
                        </tr>
                        <tr>
                            <th>表单提交限制</th>
                            <td>{$server->post_max_size}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-col-xs12 layui-col-md6">
                <table class="layui-table table-two">
                    <thead>
                        <tr>
                            <th colspan="2">开发信息</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th>系统名称</th>
                            <td>PbootCMS个性化修改版（基于PbootCMS V3.0.4）</td>
                        </tr>
                        <tr>
                            <th>源码下载</th>
                            <td>
                                <a href="https://gitee.com/xmphp/pbootcms-develop" style="color:#666" target="_blank">https://gitee.com/xmphp/pbootcms-develop</a>
                            </td>
                        </tr>
                        <tr>
                            <th>系统介绍</th>
                            <td><a href="https://www.pbhtml.com/289.html" target="_blank" style="color:#666">www.pbhtml.com/289.html</a></td>
                        </tr>
                        <tr>
                            <th>修改版作者</th>
                            <td>Marc（QQ: <a href="https://wpa.qq.com/msgrd?v=3&uin=1801233226&site=qq&menu=yes" target="_blank" style="color:#666">1801233226</a>）</td>
                        </tr>
                        <tr>
                            <th>BUG&建议</th>
                            <td><a href="https://wpa.qq.com/msgrd?v=3&uin=1801233226&site=qq&menu=yes" target="_blank" style="color:#666">点击在线提交给作者</a></td>
                        </tr>
                        
                        <tr>
                            <th>使用交流群</th>
                            <td>
                                <a href="https://jq.qq.com/?_wv=1027&k=eozLXZo7" target="_blank" style="color:#666">点击加入【PbootCMS修改版交流群♥】</a>
                            </td>
                        </tr>
                        <tr>
                            <th>建站交流群</th>
                            <td>
                                <a href="https://jq.qq.com/?_wv=1027&k=bE51WeHv" target="_blank" style="color:#666">点击加入【PbootCMS建站交流群】</a>
                            </td>
                        </tr>
                        <tr>
                            <th>捐赠&赞助</th>
                            <td>
                                <a href="https://www.pbhtml.com/289.html#donate" target="_blank" style="color:#666">点击跳转到赞助页面→</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{include file='common/foot.html'}